home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #8 / Software USA Volume 4.08.iso / mac / LifeStyles / ComicBase / ComicBase.sea / ComicBase 3 Mac Demo / ComicBase 3 Demo.rsrc / LENS_153_Quick Change < prev    next >
Text File  |  1998-02-04  |  5KB  |  74 lines

  1. ItemType: WIND
  2. Rect: 294,304,730,464
  3. Style: Dialog
  4. HasTitleBar: TRUE
  5. HasZoomBox: FALSE
  6. Name: Quick Change
  7. WhiteColor: -8739,-8739,-8739
  8. Script: --on windowEvent  wdID,wdName,objNo,objName,objValue¬global gYears¬¬---------------------¬-- This is window #7¬---------------------¬¬if objValue="Open" then ¬  -- Restore old window position¬  put OldWindowPosition(7) into windowRect¬  if windowRect = empty then ¬    centerWindow wdName¬  else wsSet "Quick Change","0","Rect",windowRect¬  ¬  put "Cost" & return & "Cover Price" & return & "Notes" & return & "Quantity" & return & "Selling Price" & return & "Storylines" into fieldsList¬  repeat with x = 1 to the number of lines of gYears¬    put return & "Value " & line x of gYears after fieldsList¬  end repeat  ¬  wsSet "Quick Change","SelectedField","Text",fieldsList¬  wsSet "Quick Change","0","Properties","SelectedField_SelectionText:Quantity" & return & "FieldValue_text:1" & return & "FieldValue_Selection:0,30000" & return & "Marked_Visible:False" & return¬  ¬else if objValue="Close" then ¬  -- save the window position¬  put "7" & tab & wdName & tab & wsGet("Quick Change","0","Rect") into line 7 of gWindowPositions¬  ¬end if¬¬--end windowEvent
  9. Params: i4_Text
  10. Result: i2_TextOfSelection
  11.  
  12. ItemType: LBL
  13. Rect: 8,36,43,48
  14. TextFont: Geneva
  15. TextSize: 9
  16. TextStyle: Bold
  17. WhiteColor: -4370,-4370,-4370
  18. Text: Field:
  19.  
  20. ItemType: POP
  21. Rect: 41,37,141,50
  22. TextFont: Geneva
  23. TextSize: 9
  24. AutoSize: FALSE
  25. Name: SelectedField
  26. Text: Cost¬Cover Price¬Notes¬Quantity¬Selling Price¬Storylines¬Value 1993¬Value 1994¬Value 1996¬Value 1997
  27. TitleItem: 1
  28. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬global firstSelectedLineNum, gYears¬global kBareDecimalFormatString¬¬put objValue into selectedField¬put false into markedIsVisible¬put "OnlyNumsIntl" into theKeyFilter¬put 16 into fieldHeight¬put 80 into fieldWidth¬put false into isScrollField¬put "147,35" into theTopLeft¬put empty into defaultValue¬put false into markedIsVisible¬¬if selectedField = "Quantity" then¬  put "Only4Digits" into theKeyFilter¬  put line firstSelectedLineNum of fld "Quantity In Stock" into defaultValue¬else if selectedField = "Cost" then¬  put Numformat(line firstSelectedLineNum of fld "Price Paid",kBareDecimalFormatString) into defaultValue¬else if selectedField = "Cover Price" then¬  put Numformat(line firstSelectedLineNum of fld "Cover Price",kBareDecimalFormatString) into defaultValue¬else if selectedField = "Marked" then¬  put (line firstSelectedLineNum of fld "Marked" = "√") into defaultValue¬  put true into markedIsVisible¬else if selectedField = "Notes" then¬  put 420 into fieldWidth¬  put 64 into fieldHeight¬  put empty into theKeyFilter¬  put true into isScrollField¬  put "8,56" into theTopLeft¬  put fld ("NonStorylineNotes") into theNotes¬  put xlate(line firstSelectedLineNum of theNotes,";",return) into defaultValue¬else if selectedField = "Storylines" then¬  put 420 into fieldWidth¬  put 64 into fieldHeight¬  put empty into theKeyFilter¬  put true into isScrollField¬  put "8,56" into theTopLeft¬  put retrieveLongField("Notes",the short id of this card) into theNotes¬  put xlate(line firstSelectedLineNum of theNotes,";",return) into defaultValue¬else if selectedField = "Selling Price" then¬  put Numformat(line firstSelectedLineNum of fld "Price",kBareDecimalFormatString) into defaultValue¬else¬  -- years¬  put the last word of selectedField into theYear¬  put find(gYears,theYear,Line,"Exact") into whereFound¬  if whereFound > 0 then ¬    put "Price Year " & whereFound into yearField¬    put Numformat(line firstSelectedLineNum of fld (yearField),kBareDecimalFormatString) into defaultValue¬  end if¬end if¬¬if markedIsVisible = "True" then ¬  wsSet wdID,"Marked","Hilite",defaultValue¬else¬  wsSet "Quick Change","FieldValue", "Text", defaultValue¬end if¬¬get "FieldValue_Scrolling:" & isScrollField & return & "FieldValue_Height:" & fieldHeight & return & "FieldValue_Width:" & fieldWidth & return & "FieldValue_Keyfilter:" & theKeyFilter & return & "FieldValue_TopLeft:" & theTopLeft & return & "FieldValue_Selection:0,30000" & return & "FieldValue_Visible:" & (not (markedIsVisible = "True")) & return & "Marked_Visible:" & (markedIsVisible = "True") & return¬wsSet "Quick Change","0", "Properties", it¬--end mouseUp
  29.  
  30. ItemType: TEXT
  31. Rect: 147,35,227,51
  32. TextFont: Geneva
  33. TextSize: 9
  34. Name: FieldValue
  35. LockText: FALSE
  36. Text: 1
  37. KeyFilter: OnlyReal
  38.  
  39. ItemType: TEXT
  40. Rect: 6,9,233,25
  41. TextSize: 12
  42. Name: Prompt
  43. WhiteColor: -8739,-8739,-8739
  44. Text: For the 4 selected issues, change:
  45.  
  46. ItemType: PUSH
  47. Rect: 344,131,424,151
  48. TextFont: Geneva
  49. AutoSize: FALSE
  50. Disabled: TRUE
  51. Name: Save
  52. DefaultItem: TRUE
  53. AutoClose: TRUE
  54.  
  55. ItemType: PUSH
  56. Rect: 252,131,332,151
  57. Name: Cancel
  58. CancelItem: TRUE
  59. AutoClose: TRUE
  60.  
  61. ItemType: CHK
  62. Rect: 147,37,210,49
  63. TextFont: Geneva
  64. TextSize: 9
  65. TextStyle: Bold
  66. Visible: FALSE
  67. Name: Marked
  68.  
  69. ItemType: LBL
  70. Rect: 11,137,131,149
  71. TextFont: Geneva
  72. TextSize: 9
  73. BlackColor: 0,0,-4370
  74. Text: Demo Version: Can't Save